
seekPassword = function ()
{
    var username= $("#username").val();
    var new_password= $("#new_password").val();
    var mail= $("#mail").val();
    var CheckCode= $("#CheckCode").val();

    var data={
        "username":username,
        "new_password":new_password,
        "mail":mail,
        "CheckCode":CheckCode
    }
    $.ajax({
        url:"/seekPasswordCheck",
        type:"Post",
        data:data,
        success(data){
            alert(data);
            if(data.toString()=="改密成功")
            {
                window.location.href="/login";
            }
        }
    })
}

getCode =function ()
{
    var mail= $("#mail").val();
    var data={
        "mail":mail
    }
    $.ajax({
        url:"/GetEMailCode",
        type:"GET",
        data:data,
        success(data) {
            alert(data);
        }
    })
}